package com.tuanzi.loan.business.service.user;

import com.tuanzi.loan.business.entity.user.LoanUserAgreement;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.user.LoanUserAgreementSearchRequest;
import com.tuanzi.loan.vo.response.user.LoanUserAgreementResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Author: chenweijun
 * @Date: 2019/9/25 10:43
 * @Description:
 */
public interface LoanUserAgreementService {

    Page<LoanUserAgreementResponse> list(PageSearcher<LoanUserAgreementSearchRequest> pageSearcher);

    public LoanUserAgreement findOneByRuleId(Integer ruleId);

    public void online(Long id);

    public void offline(Long id);

    public void delete(Long id);

    public void save(LoanUserAgreement loanUserAgreement, List<String> parentProductIds);

    public LoanUserAgreement findTopOne();

}
